package cn.java.entity;

public class Husband {
	private Long id;//老公id
	private String husbandName;//老公名
	private String sex;//1男  0女
	private Long wifeId;//老婆id
	private Wife wife;//对应老婆
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getHusbandName() {
		return husbandName;
	}
	public void setHusbandName(String husbandName) {
		this.husbandName = husbandName;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Long getWifeId() {
		return wifeId;
	}
	public void setWifeId(Long wifeId) {
		this.wifeId = wifeId;
	}
	
	public Wife getWife() {
		return wife;
	}
	public void setWife(Wife wife) {
		this.wife = wife;
	}
	@Override
	public String toString() {
		return "Husband [id=" + id + ", husbandName=" + husbandName + ", sex=" + sex + ", wifeId=" + wifeId + ", wife="
				+ wife + "]";
	}
	
	
}
